<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('AlibabaPifatuanProductDetailListParam/AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTO.class.php');
include_once ('AlibabaPifatuanProductDetailListParam/AlibabaPifatuanProductDetailListOpenplatformDeliverySubTemplateDTO.class.php');
include_once ('AlibabaPifatuanProductDetailListParam/AlibabaPifatuanProductDetailListOpenplatformDeliverySysTemplateDTO.class.php');
include_once ('AlibabaPifatuanProductDetailListParam/AlibabaPifatuanProductDetailListOpenplatformDeliveryTemplateMappingDTO.class.php');
include_once ('AlibabaPifatuanProductDetailListParam/AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTO.class.php');

class AlibabaPifatuanProductDetailListOpenplatformDeliverySubTemplateDetailDTO extends SDKDomain {

       	
    private $operateType;
    
        /**
    * @return 
    */
        public function getOperateType() {
        return $this->operateType;
    }
    
    /**
     * 设置     
     * @param String $operateType     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOperateType( $operateType) {
        $this->operateType = $operateType;
    }
    
        	
    private $rateList;
    
        /**
    * @return 
    */
        public function getRateList() {
        return $this->rateList;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTO[] $rateList     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setRateList(AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTO $rateList) {
        $this->rateList = $rateList;
    }
    
        	
    private $subTemplateDTO;
    
        /**
    * @return 
    */
        public function getSubTemplateDTO() {
        return $this->subTemplateDTO;
    }
    
    /**
     * 设置     
     * @param AlibabaPifatuanProductDetailListOpenplatformDeliverySubTemplateDTO $subTemplateDTO     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSubTemplateDTO(AlibabaPifatuanProductDetailListOpenplatformDeliverySubTemplateDTO $subTemplateDTO) {
        $this->subTemplateDTO = $subTemplateDTO;
    }
    
        	
    private $sysTemplateDTO;
    
        /**
    * @return 
    */
        public function getSysTemplateDTO() {
        return $this->sysTemplateDTO;
    }
    
    /**
     * 设置     
     * @param AlibabaPifatuanProductDetailListOpenplatformDeliverySysTemplateDTO $sysTemplateDTO     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSysTemplateDTO(AlibabaPifatuanProductDetailListOpenplatformDeliverySysTemplateDTO $sysTemplateDTO) {
        $this->sysTemplateDTO = $sysTemplateDTO;
    }
    
        	
    private $templateMappingDTO;
    
        /**
    * @return 
    */
        public function getTemplateMappingDTO() {
        return $this->templateMappingDTO;
    }
    
    /**
     * 设置     
     * @param AlibabaPifatuanProductDetailListOpenplatformDeliveryTemplateMappingDTO $templateMappingDTO     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setTemplateMappingDTO(AlibabaPifatuanProductDetailListOpenplatformDeliveryTemplateMappingDTO $templateMappingDTO) {
        $this->templateMappingDTO = $templateMappingDTO;
    }
    
        	
    private $vasList;
    
        /**
    * @return 
    */
        public function getVasList() {
        return $this->vasList;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTO[] $vasList     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setVasList(AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTO $vasList) {
        $this->vasList = $vasList;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "operateType", $this->stdResult )) {
    				$this->operateType = $this->stdResult->{"operateType"};
    			}
    			    		    				    			    			if (array_key_exists ( "rateList", $this->stdResult )) {
    			$rateListResult=$this->stdResult->{"rateList"};
    				$object = json_decode ( json_encode ( $rateListResult ), true );
					$this->rateList = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTOResult=new AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTO();
						$AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTOResult->setArrayResult($arrayobject );
						$this->rateList [$i] = $AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTOResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "subTemplateDTO", $this->stdResult )) {
    				$subTemplateDTOResult=$this->stdResult->{"subTemplateDTO"};
    				$this->subTemplateDTO = new AlibabaPifatuanProductDetailListOpenplatformDeliverySubTemplateDTO();
    				$this->subTemplateDTO->setStdResult ( $subTemplateDTOResult);
    			}
    			    		    				    			    			if (array_key_exists ( "sysTemplateDTO", $this->stdResult )) {
    				$sysTemplateDTOResult=$this->stdResult->{"sysTemplateDTO"};
    				$this->sysTemplateDTO = new AlibabaPifatuanProductDetailListOpenplatformDeliverySysTemplateDTO();
    				$this->sysTemplateDTO->setStdResult ( $sysTemplateDTOResult);
    			}
    			    		    				    			    			if (array_key_exists ( "templateMappingDTO", $this->stdResult )) {
    				$templateMappingDTOResult=$this->stdResult->{"templateMappingDTO"};
    				$this->templateMappingDTO = new AlibabaPifatuanProductDetailListOpenplatformDeliveryTemplateMappingDTO();
    				$this->templateMappingDTO->setStdResult ( $templateMappingDTOResult);
    			}
    			    		    				    			    			if (array_key_exists ( "vasList", $this->stdResult )) {
    			$vasListResult=$this->stdResult->{"vasList"};
    				$object = json_decode ( json_encode ( $vasListResult ), true );
					$this->vasList = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTOResult=new AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTO();
						$AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTOResult->setArrayResult($arrayobject );
						$this->vasList [$i] = $AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTOResult;
					}
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "operateType", $this->arrayResult )) {
    			$this->operateType = $arrayResult['operateType'];
    			}
    		    	    			    		    		if (array_key_exists ( "rateList", $this->arrayResult )) {
    		$rateListResult=$arrayResult['rateList'];
    			$this->rateList = new AlibabaPifatuanProductDetailListOpenplatformDeliveryRateDetailDTO();
    			$this->rateList->setStdResult ( $rateListResult);
    		}
    		    	    			    		    		if (array_key_exists ( "subTemplateDTO", $this->arrayResult )) {
    		$subTemplateDTOResult=$arrayResult['subTemplateDTO'];
    			    			$this->subTemplateDTO = new AlibabaPifatuanProductDetailListOpenplatformDeliverySubTemplateDTO();
    			    			$this->subTemplateDTO->setStdResult ( $subTemplateDTOResult);
    		}
    		    	    			    		    		if (array_key_exists ( "sysTemplateDTO", $this->arrayResult )) {
    		$sysTemplateDTOResult=$arrayResult['sysTemplateDTO'];
    			    			$this->sysTemplateDTO = new AlibabaPifatuanProductDetailListOpenplatformDeliverySysTemplateDTO();
    			    			$this->sysTemplateDTO->setStdResult ( $sysTemplateDTOResult);
    		}
    		    	    			    		    		if (array_key_exists ( "templateMappingDTO", $this->arrayResult )) {
    		$templateMappingDTOResult=$arrayResult['templateMappingDTO'];
    			    			$this->templateMappingDTO = new AlibabaPifatuanProductDetailListOpenplatformDeliveryTemplateMappingDTO();
    			    			$this->templateMappingDTO->setStdResult ( $templateMappingDTOResult);
    		}
    		    	    			    		    		if (array_key_exists ( "vasList", $this->arrayResult )) {
    		$vasListResult=$arrayResult['vasList'];
    			$this->vasList = new AlibabaPifatuanProductDetailListOpenplatformDeliveryVasDetailDTO();
    			$this->vasList->setStdResult ( $vasListResult);
    		}
    		    	    		}
 
   
}
?>